package cn.yunhe.insurance.dao;


import cn.yunhe.insurance.entity.Combo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author 董稳钰
 * @date 2018/9/14 17:18
 */
@Mapper
public interface ComboDao {
    //添加套餐
    boolean addCombo(Combo combo);
    //修改套餐信息
    boolean updateCombo(Combo combo);
    //获取套餐列表
    List<Combo> findLikeCombos(Map<String, Object> cond);

    //通过套餐id获取套餐信息
    Combo getComboById(String cuuid);
    //删除套餐
    boolean delCombo(String cuuid);
    //批量删除
    boolean delCombos(List<String> comboList);
    //同意套餐上架
    boolean adoptCombo(String cuuid);
    //拒绝套餐上架
    boolean refuseCombo(String cuuid);
    //获取所有的套餐
    List<Combo> getAllCombo();
    //获取所有通过审核的套餐
    List<Combo> getAllUseableCombo();

    /* void callAddPrice(String combUUid);*/
}
